<%@ page language="java" pageEncoding="utf-8"%>
    
    <%@ page import="java.util.*"%>

<%@ taglib uri="http://java.sun.com/jstl/core_rt" prefix="c" %>

<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Insert title here</title>
</head>
<body>
<c:if test="${not empty param.error}">
    <div class="error">
        Your login attempt was not successful, try again.<br />
        Reason: ${sessionScope.SPRING_SECURITY_LAST_EXCEPTION.message}
        
        <%
           Enumeration<String> names = session.getAttributeNames();
           while(names.hasMoreElements()){
        	   out.println(names.nextElement());
        	   out.println("<br>");
           }
        %>
    </div>
</c:if>
</body>
</html>